import request from "@/utils/request";
/**
 * 获取素材列表
 * @param params
 * @returns
 */
export function getresourceList(data) {
  return request({
    url: '/management/resource.resource/getList',
    method: 'post',
    data
  })
}
/**
 * 获取广告列表
 * @param params
 * @returns
 */
export function getpushList(data) {
    return request({
      url: '/management/machine.machine_advance/getList',
      method: 'post',
      data
    })
  }
  
  /**
   * 推送广告
   * @param params
   * @returns
   */
  export function addpush(data) {
    return request({
      url: '/management/machine.machine_advance/add',
      method: 'post',
      data
    })
  }
  
  /**
   * 修改推送广告
   * @param params
   * @returns
   */
  export function updatepush(data) {
    return request({
      url: '/management/advertisement.advertisement_push/update',
      method: 'post',
      data
    })
  }
  
  /**
   * 上下架推送广告
   * @param params
   * @returns
   */
  export function upDownpush(data) {
    return request({
      url: '/management/machine.machine_advance/upDown',
      method: 'post',
      data
    })
  }
  
  /**
   * 删除推送广告
   * @param params
   * @returns
   */
  export function delpush(data) {
    return request({
      url: '/management/machine.machine_advance/del',
      method: 'post',
      data
    })
  }
  
  /**
   * 触发广告更新
   * @param params
   * @returns
   */
  export function triggerUpdateAD(data) {
    return request({
      url: '/management/machine.machine_advance/triggerUpdateAD',
      method: 'post',
      data
    })
  }
  
  /**
   * 获取广告分组统计列表
   * @param params
   * @returns
   */
  export function getGroupList(data) {
    return request({
      url: '/management/machine.machine_advance/getGroupList',
      method: 'post',
      data
    })
  }
  
  /**
   * 查询广告播放历史记录列表
   * @param params
   * @returns
   */
  export function getRecordList(data) {
    return request({
      url: '/management/machine.machine_advance/getRecord',
      method: 'post',
      data
    })
  }